function Validation()
{
if (document.Form1.txtfrom2.value.length > 0)
ValidatorEnable(Rftxtfrom2, true);
ValidatorEnable(Rftxtjd2, true);
ValidatorEnable(Rftxtflno2, true);
ValidatorEnable(Rftxtdep2, true);
}
</script>
Home / DeveloperSection / Forums / How to Ennable RequiredFieldValidator With Javascript?
function Validation()
{
if (document.Form1.txtfrom2.value.length > 0)
ValidatorEnable(Rftxtfrom2, true);
ValidatorEnable(Rftxtjd2, true);
ValidatorEnable(Rftxtflno2, true);
ValidatorEnable(Rftxtdep2, true);
}
</script>
Anonymous User
20-Oct-2014function Validation()
{
if (document.Form1.txtfrom2.value.length > 0)
ValidatorEnable(document.getElementById(Rftxtfrom2), true);
ValidatorEnable(document.getElementById(Rftxtjd2), true);
ValidatorEnable(document.getElementById(Rftxtflno2), true);
ValidatorEnable(document.getElementById(Rftxtdep2), true);
}